package io.renren.modules.avanotes.service.impl;

import io.renren.common.vo.TokenVo;
import io.renren.config.BizConfig;
import io.renren.modules.avanotes.service.TokenAnalyzerService;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;
import org.apache.lucene.analysis.tokenattributes.OffsetAttribute;
import org.springframework.stereotype.Service;
import org.wltea.analyzer.lucene.IKAnalyzer;

import javax.annotation.PostConstruct;
import java.io.IOException;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.List;

/**
 * @author: xiaomi
 * @date: 2022/2/16
 * @description: 全切分模式
 */
@Service(BizConfig.IMPL_IK_ANALYZER_NOT_SMART)
public class IKNotSmartAnalyzerServiceImpl extends AbsIKTokenAnalyzer {


    @PostConstruct
    @Override
    void initAnalyzer() {
        analyzer = new IKAnalyzer(false);
    }
}
